package com.yongbao.model.vo;

import com.yongbao.common.domain.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhanghong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("订单从响应模型")
public class DishOrderSubVO extends BaseVO implements Serializable {
    @ApiModelProperty("主订单id")
    private Long orderId;
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("经度(下单时定位经度)")
    private String lng;
    @ApiModelProperty("纬度(下单时定位纬度)")
    private String lat;
    @ApiModelProperty("是否愿意成为团长 0否 1是")
    private Integer headGroup;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("总价")
    private BigDecimal orderAmount;

    @ApiModelProperty("主订单")
    private DishOrderVO dishOrder;

    @ApiModelProperty("用户信息")
    private UserVO user;

    @ApiModelProperty("订单菜品集合")
    private List<DishOrderBookVO> dishOrderBookList;
}
